package com.itheima.health.service;

import com.itheima.health.pojo.dto.SubmitDTO;
import com.itheima.health.pojo.entity.Order;
import com.itheima.health.pojo.vo.OrderFindByIdVO;

import java.text.ParseException;
import java.util.Map;

public interface OrderService {

    /**
     * 预约订单提交
     * @param submitDTO
     * @return
     * @throws ParseException
     */
    Order submit(SubmitDTO submitDTO) throws ParseException;

    /**
     * 根据id查询订单id
     * @param id
     * @return
     * @throws Exception
     */
     OrderFindByIdVO findById(String id) throws Exception;

    /**
     * 发送手机验证码
     * @param id
     * @return
     */
//    void sendValidateCode(String type, String telephone);
    Order FindById(String  id);
}
